var cryptojs = require('cryptojs').Crypto;

var MD5Helper = {

	toMd5: function(value){
		return cryptojs.MD5(value);
	},

	toMd5Byte: function(value){
		var crypto = require('crypto');
		var md5 = crypto.createHash('md5').update(value, 'utf-8').digest();
		return md5;
	}

}


module.exports = MD5Helper;